<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<fmt:setBundle basename="com.kolon.config.properties.config" var="config" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="${requestScope.contextPath}/css/mngr/common.css" rel="stylesheet" type="text/css" />
<title><fmt:message bundle="${config}" key="mngr.title" /></title>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-1.5.1.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-ui-1.8.14.custom/js/jquery-ui-1.8.14.custom.min.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/jquery-validate/jquery.validate.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/common.js"></script>
<script type="text/javascript" src="${requestScope.contextPath}/js/mngr.js"></script>
<c:choose>
<c:when test="${param.chk eq 'Y'}">
<script>
	alert('업그레이드 완료 하였습니다.');
	opener.document.location.reload();	
	self.close();
</script>
</c:when>
<c:when test="${param.chk eq 'N'}">
<script>
	alert('업그레이드 실패 하였습니다.');
	self.close();
</script>
</c:when>
</c:choose>
</head>
<body>

	<table border=0  cellpadding=0 cellspacing=0 width="100%">
	<tr>
		<td>

		<table width="100%" border="0" cellpadding="0" cellspacing="5" bgcolor="F0F9FC">
		<tr> 
			<td>
				<form id="cntUgradeForm" action="${requestScope.contextPath}/business/mngr/client/clientUpgrade.do" method="post" enctype="multipart/form-data" onsubmit="return cntUpgradeForm();">
				<input type="hidden" id="appVerChk" value="N" />
				<input type="hidden" id="frfTp" name="frfTp" value="${cntMap.FRF_TP}" />
				<table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="BED7DF">
				<tr><td colspan="2" bgcolor=E7F6FB align="left"><font color="1CABD4"><b>&nbsp;&#149; 앱 업그레이드</b></font></td></tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 버전</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<input type="hidden" id="frfVerCopy" value="${cntMap.FRF_VER}" />
						<input type="text" id="frfVer" name="frfVer" class="buttonC" value="${cntMap.FRF_VER}" /> (현재 ${cntMap.FRF_VER}) <input type="button" value="중복체크" onclick="clientHstyVerChk_('${cntMap.FRF_VER}');" />
					</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">${cntMap.APP_CNT_NM}</td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" nowrap>&nbsp;<font color="red"></font><font color="000000"><font color="red">*</font> 앱 설명</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left"><textarea name="appCntDesc" style="width:100%"></textarea> </td>
				</tr>
				<tr>
					<td  bgcolor="ffffff"  align="right" valign=top nowrap>&nbsp;<font color="red">*</font><font color="000000"> 앱 파일</font>&nbsp;</td>
					<td  bgcolor="ffffff"  align="left">
						<input type="file" id="appFile1" name="appFile1" class="buttonC" size="20" /> <c:if test="${cntMap.FILE_R_NM_1 ne ''}">(<a href="${requestScope.contextPath}/business/mngr/client/clientDownload.do?frfTp=${cntMap.FRF_TP}&amp;fileNum=1">${cntMap.FILE_R_NM_1}</a>)</c:if><br/> 
						<input type="file" name="appFile2" class="buttonC" size="20" /> <c:if test="${cntMap.FILE_R_NM_2 ne ''}">(<a href="${requestScope.contextPath}/business/mngr/client/clientDownload.do?frfTp=${cntMap.FRF_TP}&amp;fileNum=2">${cntMap.FILE_R_NM_2}</a>)</c:if><br/> 
						<input type="file" name="appFile3" class="buttonC" size="20" /> <c:if test="${cntMap.FILE_R_NM_3 ne ''}">(<a href="${requestScope.contextPath}/business/mngr/client/clientDownload.do?frfTp=${cntMap.FRF_TP}&amp;fileNum=3">${cntMap.FILE_R_NM_3}</a>)</c:if><br/>
					</td>
				</tr>
				</table>
				<table width="100%" border="0" cellpadding="5" cellspacing="0" bgcolor="BED7DF">
				<tr>
					<td colspan="2" bgcolor=FFFFFF height="50" align="center">
						<input type="submit" value="확인" /><input type="button" value="취소" onclick="self.close();" /><br/><br/>
					</td>
				</tr>
				</table>
				</form>
				</td>
				</tr>
			</table>
			</td>
			</tr>
		</table>

</body>
</html>